import {useRouter} from 'vue-router'

interface Result {
  getPageParams: () => void
}

export default function pageParams(): Result {
  const router = useRouter()
  let getPageParams = () =>  {
    let query = router.currentRoute.value.query // query参数跳转
    // let params = router.currentRoute.value.params // params参数跳转
    console.log('router.currentRoute.value:', router.currentRoute.value)
    console.log('query:', query)
  }

  return {
    getPageParams
  }
}